<?php

namespace app\admin\validate\service;

use think\Validate;

class Business extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'service_type' => 'number|gt:0',
        'name' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'service_type.gt'        => '所属商机未选择',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['service_type','name'],
        'edit' => ['service_type','name'],
    ];
    
}
